import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/finance/refund/list`,
      method: 'post',
      data
    })
  },
  // 批量审核
  batchAudit(data) {
    return request({
      url: `/v1/finance/refund/batch-audit`,
      method: 'post',
      data
    })
  },
  // 财务确认
  financeConfirm(data) {
    return request({
      url: `/v1/finance/refund/batch-confirm`,
      method: 'post',
      data
    })
  },
  // 提交
  submit(params) {
    return request({
      url: `/v1/finance/refund/batch-submit`,
      method: 'get',
      params
    })
  },
  // 撤回
  revoke(params) {
    return request({
      url: `/v1/finance/refund/batch-revoke`,
      method: 'get',
      params
    })
  },
  // 作废
  cancel(params) {
    return request({
      url: `/v1/finance/refund/cancel`,
      method: 'get',
      params
    })
  },
  // 明细
  detail(params) {
    return request({
      url: `/v1/finance/refund/detail`,
      method: 'get',
      params
    })
  },
  // 编辑
  edit(data) {
    return request({
      url: `/v1/finance/refund/edit`,
      method: 'post',
      data
    })
  },
}
